package com.ruoyi.orderEat.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单信息对象 order_info
 * 
 * @author dinghao
 * @date 2023-12-06
 */
public class OrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 父订单ID */
    @Excel(name = "父订单ID")
    private Integer parentId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 餐桌号 */
    @Excel(name = "餐桌号")
    private Integer tableId;

    /** 用餐人数 */
    @Excel(name = "用餐人数")
    private Integer dinerNum;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer orderStatus;

    /** 下单用户ID */
    @Excel(name = "下单用户ID")
    private Long userId;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setTableId(Integer tableId)
    {
        this.tableId = tableId;
    }

    public Integer getTableId()
    {
        return tableId;
    }
    public void setDinerNum(Integer dinerNum) 
    {
        this.dinerNum = dinerNum;
    }

    public Integer getDinerNum() 
    {
        return dinerNum;
    }
    public void setOrderAmount(BigDecimal orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount() 
    {
        return orderAmount;
    }
    public void setOrderStatus(Integer orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderStatus()
    {
        return orderStatus;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNumber", getOrderNumber())
            .append("tableId", getTableId())
            .append("dinerNum", getDinerNum())
            .append("orderAmount", getOrderAmount())
            .append("orderStatus", getOrderStatus())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
